package com.normal.zbase.impl.tools.utils.file

/**
 * 三疯
 * *************************
 * https://juejin.cn/post/7306815404562137128
 * *************************
 */
enum class StorageEnum(var code:Int,var path:String,var desc:String,func:String) {
    STORAGE_DATA_FILES(1,"/data/data/package/name/files","data/app的专属目录","getFileDIr()"),
    STORAGE_DATA_CACHE(2,"/data/data/package/name/cache","app的专属缓存目录","getCacheDir()"),
    STORAGE_SDCARD_ANDROID_FILES(3,"/sdcard/ANdroid/packagename/files","sdcard/app的专属目录","getExternalFilesDir()"),
    STORAGE_SDCARD_ANDROID_CACHE(4,"/sdcard/ANdroid/packagename/cache","sdcard/app的专属缓存目录","getExternalCacheDir()"),
    //共有目录不能直接访问
    STORAGE_SDCARD(5,"/sdcard","所有因公共享访问","getExternalStorageDirectory()"),
    STORAGE_SDCARD_MEIDA(6,"DCIM、Picture、Music等共享媒体目录","应用卸载后菜鸟仓数据不会被删除","getExternalStoragePublicDirectory()"),
    STORAGE_SYSTEM(7,"/system","应用卸载后菜鸟仓数据不会被删除","getRootDirectory()");
}